(function(){
    if(!window.gamma){
	    window.gamma={};
	    window.gamma.messages=[];
	    window.gamma.sink=document.createElement("div");
    }
})();
function ready(index){
    var evObj;
    if(document.createEvent){
        evObj=document.createEvent('HTMLEvents');
        evObj.initEvent('click',true,true);
        evObj.clientX=index;
        window.gamma.sink.dispatchEvent(evObj);
    }
    else if(document.createEventObject){
        evObj=document.createEventObject();
        evObj.clientX=index;
        window.gamma.sink.fireEvent('onclick',evObj);
    }
}